<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const row = [
            {
                "id": 270,
                "fleetId": 295,
                "fleetName": "测试01",
                "licensePlate": "鲁A888915",
                "vin": "VINCLTEST00000514",
                "vehicleModelCode": "44b0bad2-f658-4dab-9e9d-6fc12a7a5792",
                "vehicleModelName": "星智H8E",
                "vehicleTypeCode": "9416a7e2-e404-4d2f-88b2-0a3c5474eb93",
                "vehicleTypeName": "电货",
                "deviceStyleCode": "72913fc4-310a-44b9-897e-44657008aad8",
                "deviceStyleName": "前向防碰撞",
                "deviceSn": "013671267923",
                "createdTime": 1745316849455,
                "lastOnlineTime": null
            },
            {
                "id": 254,
                "fleetId": 295,
                "fleetName": "测试01",
                "licensePlate": "鲁A888899",
                "vin": "VINCLTEST00000498",
                "vehicleModelCode": "24a27c16-8db0-4529-a7ca-368b9bc04d36",
                "vehicleModelName": "曹操60",
                "vehicleTypeCode": "c1c46caa-a44b-4efa-ac3c-9e55afb2a043",
                "vehicleTypeName": "网约车",
                "deviceStyleCode": "72913fc4-310a-44b9-897e-44657008aad8",
                "deviceStyleName": "前向防碰撞",
                "deviceSn": "013671267923",
                "createdTime": 1745316849455,
                "lastOnlineTime": null
            },
            {
                "id": 253,
                "fleetId": 295,
                "fleetName": "测试01",
                "licensePlate": "鲁A888898",
                "vin": "VINCLTEST00000497",
                "vehicleModelCode": "24a27c16-8db0-4529-a7ca-368b9bc04d36",
                "vehicleModelName": "曹操60",
                "vehicleTypeCode": "9416a7e2-e404-4d2f-88b2-0a3c5474eb93",
                "vehicleTypeName": "电货",
                "deviceStyleCode": "72913fc4-310a-44b9-897e-44657008aad8",
                "deviceStyleName": "前向防碰撞",
                "deviceSn": "013671267923",
                "createdTime": 1745316849455,
                "lastOnlineTime": null
            },
            {
                "id": 248,
                "fleetId": 295,
                "fleetName": "测试01",
                "licensePlate": "鲁A888893",
                "vin": "VINCLTEST00000492",
                "vehicleModelCode": "44b0bad2-f658-4dab-9e9d-6fc12a7a5792",
                "vehicleModelName": "星智H8E",
                "vehicleTypeCode": "842a3e78-fe6a-4458-8f11-9e46ed7e4818",
                "vehicleTypeName": "轻卡",
                "deviceStyleCode": "72913fc4-310a-44b9-897e-44657008aad8",
                "deviceStyleName": "前向防碰撞",
                "deviceSn": "013671267923",
                "createdTime": 1745316849455,
                "lastOnlineTime": null
            }
        ]
        const currentValue = [
            {
                "id": 270,
                "fleetId": 295,
                "fleetName": "测试01",
                "licensePlate": "鲁A888915",
                "vin": "VINCLTEST00000514",
                "vehicleModelCode": "44b0bad2-f658-4dab-9e9d-6fc12a7a5792",
                "vehicleModelName": "星智H8E",
                "vehicleTypeCode": "9416a7e2-e404-4d2f-88b2-0a3c5474eb93",
                "vehicleTypeName": "电货",
                "deviceStyleCode": "72913fc4-310a-44b9-897e-44657008aad8",
                "deviceStyleName": "前向防碰撞",
                "deviceSn": "013671267923",
                "createdTime": 1745316849455,
                "lastOnlineTime": null
            },
            {
                "id": 261,
                "fleetId": 295,
                "fleetName": "测试01",
                "licensePlate": "鲁A888906",
                "vin": "VINCLTEST00000505",
                "vehicleModelCode": "44b0bad2-f658-4dab-9e9d-6fc12a7a5792",
                "vehicleModelName": "星智H8E",
                "vehicleTypeCode": "842a3e78-fe6a-4458-8f11-9e46ed7e4818",
                "vehicleTypeName": "轻卡",
                "deviceStyleCode": null,
                "deviceStyleName": null,
                "deviceSn": "013671267923",
                "createdTime": 1745316849455,
                "lastOnlineTime": null
            },
            {
                "id": 254,
                "fleetId": 295,
                "fleetName": "测试01",
                "licensePlate": "鲁A888899",
                "vin": "VINCLTEST00000498",
                "vehicleModelCode": "24a27c16-8db0-4529-a7ca-368b9bc04d36",
                "vehicleModelName": "曹操60",
                "vehicleTypeCode": "c1c46caa-a44b-4efa-ac3c-9e55afb2a043",
                "vehicleTypeName": "网约车",
                "deviceStyleCode": "72913fc4-310a-44b9-897e-44657008aad8",
                "deviceStyleName": "前向防碰撞",
                "deviceSn": "013671267923",
                "createdTime": 1745316849455,
                "lastOnlineTime": null
            },
            {
                "id": 248,
                "fleetId": 295,
                "fleetName": "测试01",
                "licensePlate": "鲁A888893",
                "vin": "VINCLTEST00000492",
                "vehicleModelCode": "44b0bad2-f658-4dab-9e9d-6fc12a7a5792",
                "vehicleModelName": "星智H8E",
                "vehicleTypeCode": "842a3e78-fe6a-4458-8f11-9e46ed7e4818",
                "vehicleTypeName": "轻卡",
                "deviceStyleCode": "72913fc4-310a-44b9-897e-44657008aad8",
                "deviceStyleName": "前向防碰撞",
                "deviceSn": "013671267923",
                "createdTime": 1745316849455,
                "lastOnlineTime": null
            },
            {
                "id": 253,
                "fleetId": 295,
                "fleetName": "测试01",
                "licensePlate": "鲁A888898",
                "vin": "VINCLTEST00000497",
                "vehicleModelCode": "24a27c16-8db0-4529-a7ca-368b9bc04d36",
                "vehicleModelName": "曹操60",
                "vehicleTypeCode": "9416a7e2-e404-4d2f-88b2-0a3c5474eb93",
                "vehicleTypeName": "电货",
                "deviceStyleCode": "72913fc4-310a-44b9-897e-44657008aad8",
                "deviceStyleName": "前向防碰撞",
                "deviceSn": "013671267923",
                "createdTime": 1745316849455,
                "lastOnlineTime": null
            }
        ]
        // 获取 row 中所有 vin 的集合
const rowVins = new Set(row.map(item => item.vin));

// 过滤 currentValue，只保留存在于 row 中的记录
const filteredCurrentValue = currentValue.filter(item => !rowVins.has(item.vin));
console.log(filteredCurrentValue,'filteredCurrentValue');

    </script>
</body>

</html>